<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
    let title = ''
    switch(location.pathname) {
      case 'login':
        title = '登录页面'
        break;
      case 'user':
        title = '用户页面'
        break;
      default:
        title = 'history模式'
        break;
    }
    document.body.innerHTML = title
  </script>
</body>
</html>
